package javax.generic.swing;

import java.awt.event.ActionListener;

import javax.swing.JDialog;

public abstract class NamedActionListener implements ActionListener {

	private String name;

	public void setName(String name) {
		this.name = name;
	}

	public void nameAndShowPanel(JDialog dialog) {
		dialog.setTitle(name);
		dialog.setVisible(true);
	}
}
